Skip to content

Instantly share code, notes, and snippets.

@seramo
seramo / commands-for-sharing-local-internet-with-autossh.txt
Created April 3, 2026 08:51
commands for sharing local internet with autossh
# Update system packages
sudo apt update
# Install autossh for persistent SSH tunnels
sudo apt install autossh
# Generate SSH key (ed25519)
ssh-keygen -t ed25519
# Copy SSH key to remote server (port 9011)
@sorrycc
sorrycc / extract-sourcemap.mjs
Created March 31, 2026 08:57
Extract original source code from JavaScript .map (source map) files. Reads sourcesContent, skips node_modules, reconstructs the original file tree.
#!/usr/bin/env node
/**
* Extract original source code from a JavaScript source map file.
*
* Usage:
* node extract-sourcemap.mjs <path-to-.map-file> [output-dir]
*
* Example:
* node extract-sourcemap.mjs cli.js.map ./src-extracted

Here’s a draft for the Wiki as per iOfficeAI/AionUi#37. Please add as new page, after some editing.

Running AionUi WebUI on Android via Termux + Proot Ubuntu (or similar OS)

Note: Electron desktop mode is unsupported on Android (process.platform === 'android'ENOENT). Use WebUI in a prooted Linux for full functionality, as per below.
Ref: Closed issue #37


@shibbirweb
shibbirweb / Google Drive to Mega.txt
Created June 29, 2020 20:17
Google Drive to Mega File Transfer
https://colab.research.google.com/github/biplobsd/OneClickRun/blob/master/OneClickRun.ipynb#scrollTo=kSvUMUuTPX7r
@dmzoneill
dmzoneill / Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU.md
Last active April 3, 2026 09:04
Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU

Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, NVIDIA GPU, and CPU

System: Fedora 43 Linux Desktop Hardware: Intel Core Ultra 7 268V (Meteor Lake) with NPU, Intel Arc iGPU, NVIDIA RTX 4060 Laptop GPU Setup Date: 2026-01-10 Author: Claude Code Version: 2.0 - Comprehensive Edition Purpose: Run 4 independent Ollama instances simultaneously on different hardware accelerators for optimal power/performance/cost flexibility


@alganet
alganet / c89cc.sh
Last active April 3, 2026 08:59
c89cc.sh - standalone C89/ELF64 compiler in pure portable shell
#!/bin/sh
# ISC License
# Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com>
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@framkant
framkant / gist:6daed7f6145af958f0bc
Created December 7, 2014 09:55
A C99 version (needed for my own purposes)
// -------------------------------------------------------------------------------
// CoreAudio continuous play test
// (c) 2014 by Arthur Langereis (@zenmumbler)
// created: 2014-12-07
//
// As part of my efforts for stardazed and to create a Mac OS X version of
// Handmade Hero.
//
// compile with:
// clang++ -std=c++11 -stdlib=libc++ -framework AudioToolbox catest.cpp -o catest
@HappyH777
HappyH777 / LiteLLM Guard.ps1
Last active April 3, 2026 08:57
LiteLLM Guard
$OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$script:auditResults = @("--- LiteLLM Security Audit Log ($(Get-Date)) ---")
function Add-Log {
param([string]$type, [string]$msg)
$timestamp = Get-Date -Format "HH:mm:ss"
$entry = "[$timestamp] [$type] $msg"
$script:auditResults += $entry
return $entry
@z5ottu
z5ottu / PS4 PKGs CUSA1-10000.csv
Created May 25, 2025 22:25 — forked from hosamn/PS4 PKGs CUSA1-10000.csv
PS4 - Single PKG Downloads - CUSA1-10000
We can't make this file beautiful and searchable because it's too large.
Parental Level,Game Title,File Offset,PlayStation PRO Support,Current Version,Instant Download,Package Size,PlayStation VR,Piece,SHA1 Hash,Title ID,Play Together
3,THE PLAYROOM,0,No,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00001_00/9/f_ef965b581d35637dabc96366f29f1f0ece58c8fa9158b0eb7de9407ae72272e8/f/IP9100-CUSA00001_00-PLAYROOM00000000-A0107-V0100.pkg,34.9MB,No,0,22774b6c655f47dffce0eb7e15c5e865dce6a849,CUSA00001_00,
9,KILLZONE SHADOW FALL,0,No,1.81,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00002_00/58/f_0882efa770fbf5b9a03b4decce248e8f07fd9585cbe43c44791799952c62fd14/f/EP9000-CUSA00002_00-KZ4RELEASE000041-A0181-V0100.pkg,2.9GB,No,0,552b7127dac3ee8ab5ce2ae051f6436c3ec605fc,CUSA00002_00,
7,inFAMOUS Second Son,0,Yes,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00004_00/28/f_2881c3732328a643917aeb4c1e73b916c1d6baa7ea09e2e81f33d5f139ea9449/f/EP9000-CUSA00004_00-SECONDSONSHIP000-A0107-V0100.pkg,3.7GB,No,0,0538bdff843286013877ab92e5dc936b1407ddcb,CUSA00004_00,